FROM sonatype/nexus3:latest

LABEL maintainer="chenwenlong <chenwenlong@epweike.com>"

USER root

RUN echo "Asia/shanghai" > /etc/timezone

USER nexus

VOLUME ${NEXUS_DATA}

EXPOSE 8081

CMD ["sh", "-c", "${SONATYPE_DIR}/start-nexus-repository-manager.sh"]